package category;
  
import java.util.LinkedList;
import java.util.Vector;

public class CategoryInfo {
	private String name;
	private String father;
	private LinkedList<String> subcategories;	
	
	
	public String getName() {
		return name;
	}



	public String getFather() {
		return father;
	}



	public LinkedList<String> getSubcategories() {
		return subcategories;
	}


	public CategoryInfo(String name, String father,
            LinkedList<String> subcategories) {
        super();
        this.name = name;
        this.father = father;
        this.subcategories = subcategories;
    }
    
    public CategoryInfo(String name, String father,
            Vector<String> subVector) {
        super();
        this.name = name;
        this.father = father;
        this.subcategories=new LinkedList<String>();
        for (String s : subVector){
            this.subcategories.add(s);
        }
    }
}
